﻿using System;

namespace Raven.Client.Exceptions.Documents.Indexes
{
    /// <summary>
    /// This exception is raised if creation of index is attempted when there is already an index with identical name
    /// </summary>
    public sealed class IndexAlreadyExistException : RavenException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IndexOrTransformerAlreadyExistException"/> class.
        /// </summary>
        public IndexAlreadyExistException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="IndexOrTransformerAlreadyExistException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public IndexAlreadyExistException(string message) : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="IndexOrTransformerAlreadyExistException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="inner">The inner.</param>
        public IndexAlreadyExistException(string message, Exception inner) : base(message, inner)
        {
        }
    }
}